package com.runnable2;

public class MyRunnable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
//            currentThread()返回对当前正在执行的线程对象的引用
//            getName()返回此线程的名称
            System.out.println(Thread.currentThread()
                    .getName() + " " + i);

        }
    }
}
